// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.nnee.p_img.p_video;

import com.nnee.p_g.cls_b;

// Referenced classes of package com.nnee.p_img.p_video:
//            ah, u, am, af

public class cls_c
{

    public cls_c()
    {
        d = -1;
        h = true;
        i = false;
        j = false;
        b = new Thread(new cls_ah(this, null));
        b.setName("ImageGettter");
        b.start();
    }

    static int a(cls_c c1)
    {
        return c1.c;
    }

    static int a(cls_c c1, int k)
    {
        c1.d = k;
        return k;
    }

    static boolean a(cls_c c1, boolean flag)
    {
        c1.i = flag;
        return flag;
    }

    static cls_am b(cls_c c1)
    {
        return c1.e;
    }

    /**
     * @deprecated Method c is deprecated
     */

    private void c()
    {
        
        a();
while(true)
{
        boolean flag = i;
        if(flag)
            break ;
        try {
			wait();
		} catch (InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
}
    }

    static boolean c(cls_c c1)
    {
        return c1.h;
    }

    static boolean d(cls_c c1)
    {
        return c1.j;
    }

    static int e(cls_c c1)
    {
        return c1.d;
    }

    static cls_u f(cls_c c1)
    {
        return c1.f;
    }

    static cls_af g(cls_c c1)
    {
        return c1.g;
    }

    /**
     * @deprecated Method a is deprecated
     */

    public void a()
    {
        
        h = true;
        
    }

    /**
     * @deprecated Method a is deprecated
     */

    public void a(int k, cls_am am, cls_u u1, cls_af af)
    {
       
        c();
        d = k;
        e = am;
        f = u1;
        com.nnee.p_g.cls_b.c("ImageGettter", (new StringBuilder()).append("imagelist count: ").append(f.b()).toString());
        g = af;
        c = 1 + c;
        h = false;
        notify();
        
    }

    public void b()
    {
        
        c();
        j = true;
        notify();
       
        try
        {
            b.join();
        }
        catch(InterruptedException interruptedexception)
        {
            interruptedexception.printStackTrace();
        }
        b = null;
        return;
         
    }

    private static final String a = "ImageGetter";
    private Thread b;
    private int c;
    private int d;
    private cls_am e;
    private cls_u f;
    private cls_af g;
    private boolean h;
    private boolean i;
    private boolean j;
}
